package fr.masterglr.website.googlr;

import java.util.List;

import fr.masterglr.website.googlr.model.Result;
import fr.masterglr.website.googlr.model.Search;


public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		SearchService ss = SearchService.getInstance();
		ss.search("JPA");
		List<Search> list = ss.getListSearchs();
		for (Search s : list)
		{
			System.out.println(s.getDate());
			for (Result r : s.getResults())
				System.out.println("   -> " + r.getUrl());
		}
	}

}
